package com.crowdfunding.controller;


import com.crowdfunding.entity.BackRecordCrowdFunding;
import com.crowdfunding.service.IBackRecordCrowdFundingService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaoyu
 * @since 2021-07-15
 */
@RestController
@CrossOrigin
@RequestMapping("/crowdfunding/backRecordCrowdFunding")
public class BackRecordCrowdFundingController {

    @Autowired
    IBackRecordCrowdFundingService iBackRecordCrowdFundingService;

    @GetMapping("/getbackRecordCrowdFundingList")
    @ResponseBody
    public List<BackRecordCrowdFunding> getBackRecordCrowdFundingList(String cfId){
        return iBackRecordCrowdFundingService.getBackRecordCrowdFundingList(cfId);
    }
}

